package com.example.demo.config.jwt;

import org.apache.shiro.authc.AuthenticationToken;


/**
 * 用JwtToken 代替原来的 Shiro 的Token
 * @author bn
 */
public class JwtToken implements AuthenticationToken {

    //密钥
    private String token;
 
    public JwtToken(String token) {
        this.token = token;
    }
 
    @Override
    public Object getPrincipal() {
        return token;
    }
 
    @Override
    public Object getCredentials() {
        return token;
    }
}